using Autofac.Core;
using ERP.BlazorServer;
using ERP.BlazorServer.Data;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;

var builder = WebApplication.CreateBuilder(args);
// Add services to the container.

/*
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
*/
builder.Services.AddSingleton<WeatherForecastService>();



 

builder.Host.UseAutofac();






var app = builder.Build();

// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
    app.UseExceptionHandler("/Error");
}


app.UseStaticFiles();

app.UseRouting();

app.MapBlazorHub();
app.MapFallbackToPage("/_Host");

app.Run();


